bb9926498547168a1bfdd156b568e766ad388d81,exec/java-exec/src/test/java/org/apache/drill/exec/server/TestOptionsAuthEnabled.java,TestOptionsAuthEnabled,setupCluster,#,47

Before Change


    // Create a new DrillConfig which has user authentication enabled and test authenticator set
    final Properties props = cloneDefaultTestConfigProperties();
    props.setProperty(ExecConstants.USER_AUTHENTICATION_ENABLED, "true");
    props.setProperty(ExecConstants.USER_AUTHENTICATOR_IMPL, UserAuthenticatorTestImpl.TYPE);

    updateTestCluster(1, DrillConfig.create(props));

After Change


  @BeforeClass
  public static void setupCluster() throws Exception {
    // Create a new DrillConfig which has user authentication enabled and test authenticator set
    final DrillConfig config = new DrillConfig(DrillConfig.create(cloneDefaultTestConfigProperties())
        .withValue(ExecConstants.USER_AUTHENTICATION_ENABLED, ConfigValueFactory.fromAnyRef(true))
        .withValue(ExecConstants.USER_AUTHENTICATOR_IMPL,
            ConfigValueFactory.fromAnyRef(UserAuthenticatorTestImpl.TYPE)),
        false);

    final Properties connectionProps = new Properties();
    connectionProps.setProperty(DrillProperties.USER, PROCESS_USER);